package fr.emn.ioc.domain.model;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Column;

//import java.io.Serializable;

//import fr.emn.ioc.FactoryBean;
//import fr.emn.ioc.domain.dao.PaysDao;


@SuppressWarnings("serial")
@Entity
@Table(name = "PAYS")

/** Structure de la table Pays dans une classe */
public class Pays 
{
	// Attributs
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private int id;
	@Column(name = "NOM")
	private String nom;


	public Pays()
	{
		this.nom="";
	}
	
	public Pays(String unNom)
	{
		this.nom = unNom;
	}

	public Pays(int unId, String unNom)
	{
		id = unId;
		nom = unNom;
	}
	
	public  int getId(){return this.id;}
	public void setId(int unId){this.id = unId;}
	
	public String getNom() {return this.nom;}
	public void setNom(String unNom) {this.nom = unNom;}
	

}

